package org.dtrd.modules.system.entity.bean.weixin;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Date;

/**
 * TODO 目前只对应了扫码事件
 * @author qr
 * @date 2022/1/12 16:39
 */
@ToString
@Getter
@Setter
@NoArgsConstructor
@XmlRootElement(name = "xml")
public class WxEventPushBean {

    @ApiModelProperty("开发者 微信号")
    private String toUserName;

    @ApiModelProperty("发送方帐号（一个OpenID）")
    private String fromUserName;

    @ApiModelProperty("消息创建时间 （整型）")
    private Date createTime;

    @ApiModelProperty("消息类型，event")
    private String event;

    private String eventKey;

    private String ticket;

    private String scanCodeInfo;

    private String scanType;

    private String scanResult;

    @XmlElement(name = "ToUserName")
    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    @XmlElement(name = "FromUserName")
    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    @XmlElement(name = "CreateTime")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @XmlElement(name = "Event")
    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    @XmlElement(name = "EventKey")
    public String getEventKey() {
        return eventKey;
    }

    public void setEventKey(String eventKey) {
        this.eventKey = eventKey;
    }

    @XmlElement(name = "Ticket")
    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    @XmlElement(name = "ScanCodeInfo")
    public String getScanCodeInfo() {
        return scanCodeInfo;
    }

    public void setScanCodeInfo(String scanCodeInfo) {
        this.scanCodeInfo = scanCodeInfo;
    }

    @XmlElement(name = "ScanType")
    public String getScanType() {
        return scanType;
    }

    public void setScanType(String scanType) {
        this.scanType = scanType;
    }

    @XmlElement(name = "ScanResult")
    public String getScanResult() {
        return scanResult;
    }

    public void setScanResult(String scanResult) {
        this.scanResult = scanResult;
    }
}
